<?php

namespace app\command;

use app\model\RegisterModel;
use think\console\Command;
use think\console\Input;
use think\console\Output;
class Hello extends Command
{
    protected function configure()
    {
        // 命令名称及用法
        $this->setName('hello')->setDescription('Example command for say hello');
    }

    // 命令的处理逻辑
    protected function execute(Input $input, Output $output)
    {
        // 输出hello, world!
        $data= [
            'name'=>'1231',
            'phone'=>'123',
            'pwd'=>'123',
            'state'=>'1'
        ];
        RegisterModel::insertUser($data);
        echo date('Y-m-d H:i:s')  . "执行完成\n";
    }
}